* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('https://img1.baidu.com/it/u=3133802645,895577185&fm=253&fmt=auto&app=138&f=JPEG?w=1066&h=800');
  background-repeat: no-repeat;
  background-size: cover;
}

.wrapper {
  width: 850px;
  height: 430px;
  border: 1px solid #000;
  display: flex;
}

.speed {
  flex: 1;
  background-color: #fff;
  margin: 10px;
  border-radius: 50px;
  overflow: hidden;
}

.speedbar {
  width: 100%;
  height: 16.3%;
  /* 颜色渐变 */
  background: linear-gradient(to bottom, pink 0%, green 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
}